package com.rd.student.jike.class4.xiayinyin.week04.day28;

public class Decorator extends Drink{

    private Drink drink;

    public Decorator(Drink drink){
        this.drink = drink;
    }
    //调料类
    @Override
    public double cost() {
        return super.getPrice() + drink.getPrice();
    }
}
